const axios = require("axios")


// 京东 api
function requests(config){
  let instance = axios.create({
    baseURL: "https://api.m.jd.com",
    headers: {
      Referer: "https://h5-movie.jd.com"
    }
  })
  return instance(config)
}

function maoyan(config){
  let instance = axios.create({
    baseURL: "https://piaofang.maoyan.com",
  })
  
  return instance(config)
}

function Webmovie(config){
  let instance = axios.create({
    baseURL: "https://movie.jd.com",
  })
  
  return instance(config)
}

module.exports = { requests, Webmovie,maoyan }